home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
batch
/
ask_wait
/
demo.bat
< prev
Wrap
DOS Batch File
|
1988-08-05
|
437b
|
23 lines
ECHO OFF
ASK&WAIT "Run A, P, or X ? X chosen after $s seconds" APX 25 x
echo
REM Check Higher Errorlevels First !
if errorlevel 255 goto BREAK
if errorlevel 3 goto X
if errorlevel 2 goto P
if errorlevel 1 goto A
echo ERRORLEVEL IS ZERO !
goto END
:BREAK
echo Break! (Run without breaking out to restore the cursor)
goto END
:A
echo Run Program A
goto END
:P
echo Run Program P
goto END
:X
echo Run Program X
:END